<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<!DOCTYPE html>
<html>
<head>
</head>

<body>

<form action="/resource/singleUpload" method="post">

    <button type="submit">提交</button>

</form>


</body>

<script type="text/javascript">


    jQuery.getScript("http://39.105.187.116:8000/landlord/css/paggingAndPullRefresh.css", function(data, status, jqxhr) {

    });




    function rm(ls, v) {
        let n = ls.length;
        for (let i = 0; i < n; i++) {
            if (ls[i] === v) {
                ls.splice(i, 1);
                i--;
                n--;
            }
        }
    }





    //定义一个删除方法



    let ls = [];

    ls.push("a");
    ls.push("a");
    ls.push("b");
    ls.push("c");
    ls.push("a");
    ls.push("a");


    rm(ls, "a");

    for (let i in ls)
    {
        console.log(ls[i]);

    }


    let s = "a-ajofjaoejfaef";

    console.log(s.startsWith("a-"));


    console.log(s.substr(2));


</script>

</html>
